# Contributor: Feng Shu <tumashu@163.com>

_realname=rime-luna-pinyin
pkgbase=mingw-w64-${_realname}
pkgname="${MINGW_PACKAGE_PREFIX}-${_realname}"
pkgver=0.0.0.20210805
_commit=6e677427764b542313858eaed22c2951d8ec22fe
pkgrel=1
pkgdesc='Luna pinyin for rime (mingw-w64)'
arch=('any')
mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clang32')
license=('LGPL')
url="https://github.com/rime/rime-luna-pinyin"
source=("https://github.com/rime/rime-luna-pinyin/archive/${_commit}/rime-luna-pinyin-${_commit}.tar.gz")
sha512sums=('c94003e733eb1283952e9c97846e8f7f6fc0f5865e8a4c7120e36113361d74d54b60febc6b698dfdb3079ca96ff43519f8d87f328dd4e9dd49a8b7bb67ba69c5')

package() {
  cd "rime-luna-pinyin-${_commit}"
  install -Dm644 *.yaml -t "${pkgdir}${MINGW_PREFIX}/share/rime-data/"
}
